<script language="JavaScript1.2" src="../../resources/js/jquery.js"></script>
<script language="JavaScript1.2" src="../../commons/js/editing.js"></script>
<script src="../../resources/js/layout.js" type="text/javascript"></script>

<script>
	function after_delete(){
		document.location='index.php';
		
	}

	function after_save(){
		document.location='index.php';
	}
	
	$(document).ready(function(){		
		$("input.decimal").keypress(function(event){
		  return checkdecimal(event,this);
		});

		$("#btndelete").click(function(){
			
			var el = document.getElementById("fra_command")	;
			
			if(confirm("Confermi la cancellazione?")) el.src = deletePage + "?CentroDiProfitto=<?=$CentroDiProfitto?>";
		});
	});

</script>
<script>
<!--
pageStart("desktop");
	layoutStart();
		header();
		bodyLayout();	
			startEditForm("<?=$editMode?>",indexPage,"Costi : Inserimento centri di profitto.","costi32");
				inHidden("p_CentroDiProfitto","<?=$CentroDiProfitto?>");
				editFormRow();
					editFormInput('maxlength="50" size="10" <?=$CentroDiProfittoStatus?> ',"Codice&nbsp;Centro","CentroDiProfitto","<?=$CentroDiProfitto?>");
					
				tr(); editFormInput('maxlength="50" size="50"',"Descrizione","Descrizione","<?=$Descrizione?>");
				tr(); editFormInput('class="decimal" maxlength="9" size="9"',"Costo Orario","CostoOrario","<?=$CostoOrario?>");
				editFormEmptyRow();	
				editFormButtonsRow();
					write("<?=$btndelete?>");
					saveButton();
			endEditForm();
		layoutEnd();
pageEnd();	
-->
</script>